<?php

namespace Home\Controller;

use Think\Controller;



class PosterController extends BaseController
{

    /*海报未过期浏览海报*/

    public function index()
    {
        $member_id = I('get.mid');
        $local_id = I('get.lid');
        $picPath = M('distribution_member')->where(['member_id'=>$member_id,'local_id'=>$local_id])->find()['pic_src'];
        $poster_title = M('weixin_poster')->where(['local_id'=>$local_id])->find()['title'];
        $user_name = M('b2c_members')->where(['member_id'=>$member_id])->find()['nickname'];
        $title = '你的好友'.$user_name.'诚邀你加入'.$poster_title;
        //小图
        $picPath_m = str_replace('hp.jpg','mhp.jpg',$picPath);
        $this->assign('poster_img',$picPath);
        $this->assign('title',$title);
        $this->assign('poster_img_m',$picPath_m);
        $this->display('Member/memberPoster');

    }



}
